#include "Serialization.h"

// shut up, purists ;)
using namespace skelepp::Utilities::Data;

char *Serialization::flatten(void *object, size_t size) {
	char *buffer = (char *)malloc(size);
	memcpy(buffer, object, size);

	return buffer;
}

void *Serialization::unflatten(char *object, size_t size) {
	char *buffer = (char *)malloc(size);
	memcpy(buffer, object, size);

	return (void *)buffer;
}